namespace Ds.DataBase.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class 继承1 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.GongZuoJiHuas",
                c => new
                    {
                        mbid = c.Int(nullable: false),
                        jhsx = c.Int(nullable: false),
                        gzjhnr = c.String(),
                        gzjhfz = c.Decimal(nullable: false, precision: 18, scale: 2),
                        gzjhhtml = c.String(),
                        cjrid = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.mbid)
                .ForeignKey("dbo.MoBans", t => t.mbid)
                .Index(t => t.mbid);
            
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.GongZuoJiHuas", "mbid", "dbo.MoBans");
            DropIndex("dbo.GongZuoJiHuas", new[] { "mbid" });
            DropTable("dbo.GongZuoJiHuas");
        }
    }
}
